package com.dxj.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Set;

/**
 * @author dxj
 * @Description 用户登录后信息
 * @date 2024/7/28 16:42
 */
@Data
public class UserInfoVo {

    /**
     * id
     */
    @ApiModelProperty(value = "id",  example = "1")
    private Long id;
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名",  example = "admin")
    private String userName;
    /**
     * 名称
     */
    @ApiModelProperty(value = "真实用户名", example = "admin")
    private String nickName;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱",  example = "test@163.com")
    private String email;

    /**
     * 权限集合
     */
    @ApiModelProperty(value = "权限集合",  example = "[user:info:add,user:info:update]")
    private Set<String> permissions;

    /**
     * 角色集合
     */
    @ApiModelProperty(value = "角色集合",  example = "[Role_ADMIN,ROLE_USER]")
    private Set<String> roles;

}
